export async function forceLogin(cx, next) {
    if (cx.state.user) {
        await next();
    } else {
        cx.fail('没有登录');
    }
}
